<?php
namespace Model;
use Kuyuan\WqCore\Model\Model;

/**
 * 素材库参数设置
 * Class SettingMediaModel
 * @package Model
 */
class SettingMediaModel extends Model
{
    protected $_key = "uniacid";
    protected $_fields = array(
        "uniacid",
        "default_size",
        "is_check",
        "duration",
        "transcoding"
    );

    /**
     * 默认素材库内存大小
     * @param $_value
     * @return mixed
     */
    public function getDefaultSizeAttr($_value)
    {
        return $_value * 1024 * 1024;
    }
}